const jiecioption = [
    {
        "periodsessionenddate": "20241231",
        "iscurrentjieci": 1,
        "label": "二次",
        "periodsessionstartdate": "20240101",
        "fulllabel": "第十三届二次",
        "value": "8ln2faolFjJuqzT1CeE6T0Hc",
        "shortlabel": "第十三届二次"
    },
    {
        "periodsessionenddate": "20231231",
        "iscurrentjieci": 0,
        "label": "一次",
        "periodsessionstartdate": "20230101",
        "fulllabel": "第十三届一次",
        "value": "97s6GEvMPlgircr1C1wEk4AX",
        "shortlabel": "第十三届一次"
    }
]

const labels = [{label: '一次', sortid: 1, disabled: false},
    {label: '二次', sortid: 2, disabled: false},
    {label: '三次', sortid: 3, disabled: false},
    {label: '四次', sortid: 4, disabled: false},
    {label: '五次', sortid: 5, disabled: false}]

for (let labelObj of labels) {
    const findObj = jiecioption.find(item => item.label === labelObj.label);
    if (findObj) {
        findObj.sortid = labelObj.sortid;
        findObj.disabled = false;
    } else {
        jiecioption.push(labelObj);
    }
}
jiecioption.sort((a, b) => a.sortid - b.sortid)

console.log(jiecioption)




